﻿@model UserViewModel
@{
    ViewBag.Title = "Login";
    string name = ViewBag.Name;
}

<link href="~/Style/demo.css" rel="stylesheet" />
<link href="~/Style/style.css" rel="stylesheet" />

<div class="container">
    <header>
        @if (string.IsNullOrEmpty(name))
        {
            <h1>Приветствую гость!</h1>
        }
        else
        {
            <h1>Приветствую @name!</h1>
        }
        <h2>Пожалуйста введите свой номер</h2>
    </header>

    @using (Html.BeginForm("Login", "Home", FormMethod.Post, new { id = "loginForm" }))
    { 
        
        <div class="form-1">
            <p class="field">
                @Html.TextBoxFor(model => model.Name, new { placeholder = "Логин" })
                <i class="icon-user icon-large"></i>
            </p>
            <p class="field">
                @Html.TextBoxFor(model => model.Password, new { placeholder = "Номер" })
                <i class="icon-lock icon-large"></i>
            </p>
            <p class="submit">
                <button type="submit" name="submit"><i class="icon-arrow-right icon-large"></i></button>
            </p>
        </div>
        <div>
            @Html.ValidationSummary()
        </div>
    }
</div>
